<?php

use Illuminate\Database\Schema\Blueprint;
use Illuminate\Database\Migrations\Migration;

class CreatePersonalAuthTable extends Migration
{
    /**
     * Run the migrations.
     *
     * @return void
     */
    public function up()
    {
        Schema::create('personal_auth', function(Blueprint $table)
        {
            $table->increments('id');
            $table->integer ('user_id')->default(0)->comment('用户id');
            $table->integer('idcard_front_id')->default(0)->comment('身份证正面');
            $table->integer('idcard_back_id')->default(0)->comment('身份证反面');
            $table->string('idcard_num')->nullable()->comment('身份证号');
            $table->string('realname')->nullable()->comment('真实姓名');
            $table->softDeletes();
            $table->timestamps();
        });
    }

    /**
     * Reverse the migrations.
     *
     * @return void
     */
    public function down()
    {
        //
    }
}
